package com.oracle.dao;

import com.oracle.entity.User;

import java.util.ArrayList;
import java.util.List;

public class UserDao {
private List<User> list=new ArrayList<User>();

    public UserDao() {
       list.add(new User("name0","123456"));
       list.add(new User("name1","123456"));
       list.add(new User("name2","123456"));
       list.add(new User("name3","123456"));

    }

    public List<User> getList() {
        return list;
    }

    public void setList(List<User> list) {
        this.list = list;
    }
    public void addList(String username,String password){
        list.add(new User(username,password));
    }
}
